import request from '@/utils/request'

// --------  视频管理 --------

let BASE_ADDRESS = '/base/config'


//分页查询
export const getListVideoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/listVideo`,
        method: 'get',
        params: data
    })
}

//修改
export const getConfigtEditVideoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/editVideo`,
        method: 'put',
        data
    })
}


//id查询
export const getConfigGetInfoVideoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfoVideo`,
        method: 'get',
        params: data
    })
}

//删除
export const getConfigRemoveVideoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/removeVideo/${data}`,
        method: 'DELETE',

    })
}

